<#assign className = clazz.className>   
<#assign classNameLower = className?uncap_first>   
package com.uisftech.healthcard.web;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.infrastructure.webui.framework.UIFacade;
import com.infrastructure.webui.framework.User;
import com.infrastructure.webui.framework.annotation.Priv;
import com.infrastructure.webui.framework.data.DataAdapter;
import com.infrastructure.webui.framework.data.DataTable;
import com.infrastructure.webui.framework.ui.controls.DataGridAction;
import com.infrastructure.webui.framework.utility.StringUtil;
import com.uisftech.healthcard.constant.BatchStatusConstant;
import com.uisftech.healthcard.service.${className}Service;
import com.uisftech.healthcard.vo.${className}Vo;

/**
 * 类名:${className} 类描述:${className}
 * 
 */
public class ${className}UI extends UIFacade {
	private ${className}Service ${classNameLower}Service;

	Log log = LogFactory.getLog(getClass());

	public ${className}Service get${className}Service() {
		return ${classNameLower}Service;
	}

	public void set${className}Service(${className}Service ${classNameLower}Service) {
		this.${classNameLower}Service = ${classNameLower}Service;
	}

	/***
	 * 个人信息列表查询
	 * 
	 * @queryMapm dga
	 */
	@Priv(loginType = Priv.LoginType.User, userType = User.UT_Sys, value = "", login = false)
	public void bindGrid(DataGridAction dga) {
		HashMap<String, Object> queryMap = new HashMap<String, Object>();
		try {
			校验
		} catch (ParseException e) {
			log.error("query ExecutingHistoryList exception the msg is :"
					+ e.getMessage());
			this.Response.setFailedMessage("查询失败：" + e.getMessage());
			return;
		} catch (Exception e) {
			log.error("query OperateHistoryList exception the msg is :"
					+ e.getMessage());
			this.Response.setFailedMessage("查询失败：" + e.getMessage());
			return;
		}
		queryMap.put...;
		
		try {
			List<${className}Vo> entityVoList = 
					${classNameLower}Service.getList(queryMap, dga.getStartRow(), dga.getPageSize());// new
			
			dga.setTotal(${classNameLower}Service.getCount(queryMap));
			
			DataTable dt = new DataAdapter<${className}Vo>(entityVoList,
					${className}Vo.class).getDataTable();
			dga.bindData(dt);
		} catch (Exception e) {
			log.error("query exception the msg is :" + e.getMessage());
			this.Response.setFailedMessage("查询失败:" + e.getMessage());
			return;
		}

	}

}
